#include "terrain.h"
#include <GL/gl.h>

Terrain::Terrain(int width) : width_(width)
{
}

void Terrain::render()
{
//    glPushMatrix();

    int halfLen = width_ / 2;
    glBegin(GL_QUADS);
        //bottom
        glColor3f(.3, .15, .0);
        glVertex2i(-halfLen, -100);
        glVertex2i(halfLen, -100);
        //top
        glColor3f(.7, .6, .5);
        glVertex2i(halfLen, 0);
        glVertex2i(-halfLen, 0);
    glEnd();

//    glPopMatrix();
}
